package com.twohand.admin.Service;

import com.twohand.admin.Dto.*;
import com.twohand.admin.Entity.Qrcode;
import com.twohand.admin.Entity.Shop;
import com.twohand.admin.Util.PageResponse;
import com.twohand.admin.Vo.GenUrlVo;
import com.twohand.admin.Vo.Order.OrderStatisVo;
import com.twohand.admin.Vo.SelectOptions;

import java.text.ParseException;
import java.util.List;

public interface ShopService {
    PageResponse<Shop> shopList(ShopListQueryDto shopListQueryDto);

    Boolean addShop(Shop shop);
    Boolean changShop(Shop shop);
    Boolean delShop(Integer id);
    List<SelectOptions> getOptions();
    List<SelectOptions> getShopNameOption();
    Shop selectShopByNameAndPlatform(String shopName,Integer platform);
    Shop selectShopByName(String shopName);

    Shop selectShopById(Integer id);
    Object checkAndAddShop(List<ShopInfoDto> shopInfos);
    GenUrlVo getUrlNew(GenUrlDto genUrlDto) throws ParseException;
    GenUrlVo getUrl(GenUrlDto genUrlDto) throws ParseException;
    void updateUrlIsGen(String shopName,Integer shopId);
    void updateUrlIsNotGen(String shopName,Integer shopId);

    OrderStatisVo OrderStatis(ShopListQueryDto shopListQueryDto);

    List<Shop> getSalesShop(Integer sid, String shopName, Integer platform);

    List<String> groupByActiveDate(ShopListQueryDto shopListQueryDto);
    Shop getShopById(Integer shopId);

    Boolean priorityShop(Integer id);


    Boolean batchChangeRelevancy(BatchChangeMoneyDto batchChangeMoneyDto);
}
